﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IntegradorMod
{
    public partial class Cad_Usuario : Form
    {
        public Cad_Usuario()
        {
            InitializeComponent();
        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {

        }

        private void Cad_Usuario_Load(object sender, EventArgs e)
        {

        }

        private void groupBox2_Enter(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            txtnome.Clear();
            txtsetor.Clear();
            txtlogin.Clear();
            txtsenha.Clear();

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {
            Usuario objusuario = new Usuario();
            objusuario.nome_ = txtnome.Text;
            objusuario.setor_ = txtsetor.Text;
            objusuario.identificacao_ = txtlogin.Text;
            objusuario.senha_ = txtsenha.Text;

            objusuario.Inserir1(objusuario);

            MessageBox.Show("Informação Salva!!");

            

        }

        private void button6_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Pesq_Usuario pesqusuario = new Pesq_Usuario();
            pesqusuario.ShowDialog();

        }
    }
}
